@charset "UTF-8";
@import "rem-calc";


$mediaArray: "only screen and (max-width: 379px)",
"only screen and (min-width: 380px) and (max-width: 399px)",
"only screen and (min-width: 400px) and (max-width: 439px)",
"only screen and (min-width: 440px) and (max-width: 479px)",
"only screen and (min-width: 480px) and (max-width: 639px)",
"only screen and (min-width: 640px) and (max-width: 679px)",
"only screen and (min-width: 750px)";

$rem-base: 36px;
$ratioFor320: 640/320;
$ratioFor380: 640/380;
$ratioFor400: 640/400;
$ratioFor440: 640/440;
$ratioFor480: 640/480;
$ratioFor640: 640/680;
$ratioFor750: 640/750;

$htmSizeArray: floor($rem-base/$ratioFor320),
floor($rem-base/$ratioFor380),
floor($rem-base/$ratioFor400),
floor($rem-base/$ratioFor440),
floor($rem-base/$ratioFor480),
floor($rem-base/$ratioFor640),
floor($rem-base/$ratioFor750);

html,body{
  margin: 0px;
  padding: 0px;
  clear: both;
  overflow: hidden;
  background-repeat: no-repeat;
  background-image: url("../images/app/common/mybg.jpg");
  //position: absolute;
  min-height: 100%;
  width: 100%;
  background-size: 100%;
  height: auto;
}
html{
  background-position: center bottom;
  height: auto;
}
p{
  margin: 0;
  padding: 0px;
}
.oneContainer{
  margin-top: rem-calc(280px);
  padding: 0px 10px;
  box-sizing: border-box;
  .couponBox{
    border: 2px dashed #e83928;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    width: 90%;
    margin: 0 auto;
    .coupon_pink{
      width: rem-calc(502px);
      height: rem-calc(222px);
      margin: 0 auto;
      clear: both;
      overflow: hidden;
      background-image: url("../images/app/common/pinkbg.png");
      background-repeat: no-repeat;
      background-size: cover;
      .leftFlag{
        width: rem-calc(210px);
        height: rem-calc(222px);
        -webkit-align-content: center;
        -ms-flex-align: center;
        align-items: center;
        display: -webkit-flex;
        display: flex;
        float: left;
        text-align: center;
        font-size: rem-calc(40px);
        .text{
          width: 100%;
          text-align: center;
          color: #fff;
          line-height: 1.5;
          text-shadow: 0px 3px 3px rgba(0,0,0,0.4);
        }
      }
      .rightText{
        float: right;
        width: rem-calc(260px);
        overflow: hidden;
        padding-top: rem-calc(45px);
        .number{
          text-align: center;
          line-height: 1;
          font-size: rem-calc(40px);
          font-weight: bold;
          color: #fff;
        }
        .logo{
          height: rem-calc(60px);
          -webkit-align-content: center;
          -ms-flex-align: center;
          align-items: center;
          display: -webkit-flex;
          display: flex;
          img{
            max-height: rem-calc(60px);
            max-width: rem-calc(200px);
            margin: 0 auto;
          }
        }
        p{
          font-size: rem-calc(12px);
          color: #fff;
        }
      }
    }
    .nodata{
      width: 100%;
    }
    .des_coupon{
      width: 70%;
      margin: 10px auto;
      color: #666;
      font-size: rem-calc(12px);
    }
    .coupon_red{
      @extend .coupon_pink;
      background-image: url("../images/app/common/redbg.png");
    }
  }
}


// set responsive
@for $mediaIndex from 1 to length($mediaArray) + 1 {
  $media: nth($mediaArray, $mediaIndex);
  $htmlFz: nth($htmSizeArray, $mediaIndex);
  @media #{$media}
  {
    html {
      font-size: $htmlFz;
    }
  }
}